package com.plian.system.entity.pf;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.plian.system.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Author: Take-off
 * @Description: TODO 绩效考评指标
 * @Date: 2022/12/13 4:53 PM
 * @Version: 1.0
 **/
@Data
@TableName("pf_appraisal_index")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "AppraisalIndex对象", description = "绩效考评指标")
public class AppraisalIndex extends BaseEntity {

    @ApiModelProperty(value = "父类Id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;

    @ApiModelProperty(value = "指标名称")
    private String name;

    @ApiModelProperty(value = "完成值取值（快报指标code）")
    private String completeCode;

    @ApiModelProperty(value = "审定认定取值（审定表指标code）")
    private String reviewCode;

    @ApiModelProperty(value = "适用年份")
    private String year;

    @ApiModelProperty(value = "指标类型：1-财务绩效；2-任务绩效")
    private Integer type;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "是否临时")
    private Integer flag;

    @ApiModelProperty(value = "标志：001-经营绩效；002-预算；003-履职成效")
    private String tableCode;

    @ApiModelProperty(value = "去年完成值取值（快报指标code）")
    private String lastCompleteCode;

    @ApiModelProperty(value = "是否公式 0否1是")
    private Integer isFormula;

    @ApiModelProperty(value = "完成值公式")
    private String completeFormula;

    @ApiModelProperty(value = "去年完成值公式")
    private String lastCompleteFormula;
}
